﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="ContractSelf.aspx.cs" Inherits="Employees_ContractSelf" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        datamember="ViewContractList">
    </infolight:webdatasource>
    <infolight:webgridview id="wgvMaster" runat="server" datasourceid="Master" 
        width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" 
        queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False" 
        horizontalalign="Center" pagesize="15" 
        onrowdatabound="wgvMaster_RowDataBound" CellPadding="5">
        <navcontrols>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" 
                ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" 
                ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="False" Size="25" 
                MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" 
                ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
                <asp:BoundField DataField="ContractId" HeaderText="合同编号" 
                    SortExpression="ContractId" />
                <asp:BoundField DataField="EmployeeID" HeaderText="员工编号" 
                    SortExpression="EmployeeID" />
                <asp:BoundField DataField="EmpName" HeaderText="员工姓名" 
                    SortExpression="EmpName" />
                <asp:BoundField DataField="DepartmentName" HeaderText="所属部门" 
                    SortExpression="DepartmentName" />
                <asp:TemplateField HeaderText="合同类型" SortExpression="ContractType">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ContractType") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <InfoLight:WebDropDownList ID="WebDropDownList2" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsWorkType" 
                            DataTextField="ValueName" DataValueField="ValueId" DriverObject="" Filter="" 
                            FilterObject="" onlyshowselecttext="True" 
                            SelectedValue='<%# Bind("ContractType") %>'>
                        </InfoLight:WebDropDownList>
                    </ItemTemplate>
            </asp:TemplateField>
                <asp:TemplateField HeaderText="合同开始" SortExpression="Contractbegin">
                    <EditItemTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewContractListContractbeginE" 
                            runat="server" DateFormat="None" DateTimeType="DateTime" Localize="False" 
                            MaxYear="2050" MinYear="1950" Text='<%# Bind("Contractbegin") %>' 
                            ToolTip="Contractbegin" UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewContractListContractbeginF" 
                            runat="server" DateFormat="None" DateTimeType="DateTime" Localize="False" 
                            MaxYear="2050" MinYear="1950" ToolTip="Contractbegin" UseButtonImage="True" 
                            Width="100px"></InfoLight:WebDateTimePicker>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lViewContractListContractbegin" runat="server" 
                            Text='<%# Bind("Contractbegin", "{0:d}") %>' ToolTip="Contractbegin"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="合同结束" SortExpression="Contractend">
                    <EditItemTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewContractListContractendE" 
                            runat="server" DateFormat="None" DateTimeType="DateTime" Localize="False" 
                            MaxYear="2050" MinYear="1950" Text='<%# Bind("Contractend") %>' 
                            ToolTip="Contractend" UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <InfoLight:WebDateTimePicker ID="wdtViewContractListContractendF" 
                            runat="server" DateFormat="None" DateTimeType="DateTime" Localize="False" 
                            MaxYear="2050" MinYear="1950" ToolTip="Contractend" UseButtonImage="True" 
                            Width="100px"></InfoLight:WebDateTimePicker>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lViewContractListContractend" runat="server" 
                            Text='<%# Bind("Contractend", "{0:d}") %>' ToolTip="Contractend"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Contractinhibit" HeaderText="是否约束" 
                    SortExpression="Contractinhibit" Visible="False" />
                <asp:TemplateField HeaderText="逾期" SortExpression="Overdue">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Overdue") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="ov" runat="server" Text='<%# Bind("Overdue") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作人" SortExpression="EditEmpId">
                    
                    <ItemTemplate>
                        <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" 
                            AutoInsertEmptyData="False" DataSourceID="wdsDo" 
                            DataTextField="EmpName" DataValueField="EmployeeID" DriverObject="" Filter="" 
                            FilterObject="" onlyshowselecttext="True" 
                            SelectedValue='<%# Bind("EditEmpId") %>'>
                        </InfoLight:WebDropDownList>
                    </ItemTemplate>
            </asp:TemplateField>
                <asp:TemplateField HeaderText="备注" SortExpression="Remark">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Remark") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate><asp:Literal runat="server" Text='<%# Bind("Remark") %>' ID="TextBox3"></asp:Literal>
                     
                    </ItemTemplate>
                </asp:TemplateField>
                
</columns>

        <rowstyle HorizontalAlign="Center"></rowstyle>
        <pagersettings mode="NumericFirstLast" />
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True"></footerstyle>
        <rowstyle backcolor="#EFF3FB"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
    </infolight:webgridview>
    <br />
    <div style="text-align: center">
        <span class="roundbtn">
            <asp:LinkButton ID="Back" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返&nbsp;&nbsp;&nbsp;&nbsp;回&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" OnClientClick="javascript:history.back();return false"></asp:LinkButton>
        </span>
    </div>
    <infolight:webdatasource runat="server" id="wdsWorkType" selectalias="Usasdb" selectcommand="select Employees_LinkValue.ValueId,Employees_LinkValue.ValueName from Employees_LinkValue
where TypeId='WorkContractType'">
    </infolight:webdatasource>
    
    <infolight:webdatasource runat="server" id="wdsDo" selectalias="Usasdb" 
        selectcommand="select Employees.EmployeeID,Employees.EmpName from Employees">
    </infolight:webdatasource>
</asp:Content>
